package com.lidong.zc.databasemodel.entity.mybatis;

import java.util.HashMap;
import java.util.Objects;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 2022/1/12 19:59
 */
public class LowerKeyMap extends HashMap {

    /**
     * 重写 HashMap 的 put
     *
     * @param key
     * @param value
     * @return
     */
    @Override
    public Object put(Object key, Object value) {
        if (Objects.nonNull(key)) {
            key = key.toString().toLowerCase();
        }
        return super.put(key, value);
    }
}
